
package com.ss.whisper2.rabbitmq.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component

public class DirectReceiver {

	@RabbitListener(queues = "TestDirectQueue")
	public void process(@Payload Map testMessage) {
		System.out.println("DirectReceiver消费者收到消息  : " + testMessage.toString());
	}

}
